package com.example.wxai.pijo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 信息表
 * </p>
 *
 * @author author
 * @since 2025-02-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("message")
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 对应聊天id
     */
    @TableField("chat_id")
    private String chatId;

    /**
     * ai信息
     */
    @TableField("message_type")
    private String messageType;

    @TableField("message")
    private String message;

    @TableField("creat_time")
    private LocalDateTime creatTime;

    /**
     * 1删
     */
    @TableField("is_delete")
    private Boolean isDelete;


}
